<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script type="text/javascript">
		var arr1=[89,75,99,'hello','post'];
		function fn1(arr1,index1,index2){
			var temp = arr1[index1];
        	arr1[index1] = arr1[index2];
        	arr1[index2] = temp;
        	console.log(arr1);
		}
		fn1(arr1,3,1);
	</script>
</head>
<body>

</body>
</html>